﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Bll
{
    public class Category
    {
        public static DataTable MULTIPLE(string strCon)
        {
            return Dal.Category.MULTIPLE(strCon);
        }

        public static DataTable MULTIPLE(string strCon, int strCatID)
        {
            return Dal.Category.MULTIPLE(strCon, strCatID);
        }


        public static DataTable Single(string strCon, int pkid)
        {
            return Dal.Category.Single(strCon, pkid);
        }

        public static DataTable Single(string strCon, string urlname)
        {
            return Dal.Category.Single(strCon, urlname);
        }

        public static int Update(string strCon,
                string txbCatTitle,
                string txbUrlName,
            string txbImgURL,
                string txbDescription,
                int txbSortBy,
                int txbPKID)
        {
            return Dal.Category.Update(
                    strCon,
                    txbCatTitle,
                    txbUrlName,
                    txbImgURL,
                    txbDescription,
                    txbSortBy,
                    txbPKID
            );
        }

        public static int Insert(string strCon,
                string txbCatTitle,
                string txbUrlName,
                string txbImgURL,
                string txbDescription,
                int txbSortBy,
                int txbCatRank,
                int txbParID)
        {
            return Dal.Category.Insert(
                    strCon,
                    txbCatTitle,
                    txbUrlName,
                    txbImgURL,
                    txbDescription,
                    txbSortBy,
                    txbCatRank,
                    txbParID
            );
        }

        public static int Insert(string strCon, string txbCatTitle, string txbUrlName, string txbImgURL, string txbDescription, int txbSortBy)
        {
            return Dal.Category.Insert(strCon, txbCatTitle, txbUrlName, txbImgURL, txbDescription, txbSortBy);
        }


        public static int Delete(string strCon, int pkid)
        {
            return Dal.Category.Delete(strCon, pkid);
        }
        

    }
}
